package com.nostop.vo;


import com.google.common.collect.Lists;
import com.nostop.model.SysDept;
import lombok.Data;
import lombok.ToString;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Data
@ToString
public class DeptLevelVo extends SysDept {

    private List<DeptLevelVo> deptList = Lists.newArrayList();

    public static DeptLevelVo adapt (SysDept dept) {
        DeptLevelVo deptLevelVo = new DeptLevelVo();
        BeanUtils.copyProperties(dept,deptLevelVo);
        return deptLevelVo;
    }
}
